<?php 

include'../classes/db.php';
$nic=$_GET['nic'];
$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));
$year=date('Y',$time_now);

$x=new DbConnect();
$con=$x->getConnection();
  
  $result= mysql_query("Select nic from student where nic='$nic' and year(j_date)='$year'",$con);
  $nof=mysql_num_rows($result);
    if($nof==0)
		{
   		echo"false";
    	}
	else
		{
  		echo"true";
  		}
?>